package com.fuershiye.woman.monitor.service;

import java.util.List;

import com.fuershiye.woman.monitor.beans.IdName;
import com.fuershiye.woman.monitor.model.IndicatorType;

/**
 * @author yongyongdong
 *
 */
public interface IndicatorTypeService {

    void save(IndicatorType it);
    void delete(Long id);
    IndicatorType get(Long id);
    
    /**	取当前表中最大数据
     * @return
     */
    IndicatorType getTop();
    
    /**
     * @param sort(当前位置)
     * @param aim	方向 (1:比id大的;	2:比id小的)
     * @param count	取几条数据
     * @return
     */
    IndicatorType findBySort(Long sort, Integer aim, Integer count);

    /**
     * formsid 指标的ID
     * name为空查询所有,不为空模糊查询
     * status 0:删除;1:正常
     * @return
     */
    List<IndicatorType> listByCondition(Long formsid, String name, Integer status);
    List<IndicatorType> listByCondition(List<Long> ids, Long formsid, String name, Integer status);

    List<IdName> getByCondition(Long formsid, String name, Integer status);

    List<IdName> getByCondition(Long formsid, List<Long> ids);

}
